﻿//---------------------------------------------------------------------------

#ifndef PlayTimerH
#define PlayTimerH
//---------------------------------------------------------------------------
#define Accuracy     1  //系统允许的分辨率最小值

#define Min(x,y)  ((x < y) ? x : y)
#define Max(x,y)  ((x > y) ? x : y)

extern UINT BarTimerID, PreOffTimerID, ComposeTimerID;    //定义定时器句柄
extern bool BarTimer_Enabled;
extern bool PreOffTimer_Enabled;
extern bool ComposeTimer_Enabled;
extern bool BarTimerProcess;

extern void TimerBeginPeriod();
extern void TimerEndPeriod();
extern void BarTimerStart();
extern void BarTimerStop();
extern void PreOffTimerStart();
extern void PreOffTimerStop();
extern void PASCAL BarTimerCallProc(UINT TimerID, UINT msg,DWORD dwUser, DWORD dwa,DWORD dwb);
extern void PASCAL PreOffTimerCallProc(UINT TimerID, UINT msg,DWORD dwUser, DWORD dwa,DWORD dwb);
extern void PASCAL ComposeTimerCallProc(UINT TimerID, UINT msg,DWORD dwUser, DWORD dwa,DWORD dwb);

#endif
